package app.caihan.wanandroid.ui.integral

import android.content.Context
import android.content.Intent
import android.os.Bundle
import app.caihan.scframe.base.activity.BaseVmDbActivity
import app.caihan.scframe.common.loadinghelper.ToolbarConfig
import app.caihan.scframe.common.loadinghelper.ToolbarType
import app.caihan.scframe.databind.DataBindingConfig
import app.caihan.wanandroid.BR
import app.caihan.wanandroid.R

class MyIntegralActivity : BaseVmDbActivity<MyIntegralModel>() {

    companion object {

        fun startMyIntegralActivity(content: Context) {
            val intent = Intent().apply {
                setClass(content, MyIntegralActivity::class.java)
            }
            content.startActivity(intent)
        }
    }


    override fun useBaseToolbar(): ToolbarConfig {
        return ToolbarConfig(ToolbarType.TOOLBAR, "我的积分")
    }

    override fun getDataBindingConfig(): DataBindingConfig {
        return DataBindingConfig(BR.vm)
    }


    override fun bindLayoutId(): Int {
        return R.layout.my_integral_activity
    }

    override fun initView(savedInstanceState: Bundle?) {
    }

    override fun createObserver() {
        mViewModel.run {
        }
    }
}
